/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package local.ctl;

import java.sql.SQLException;
import persistance.DaoMemory;
import shared.Memory;

/**
 *
 * @author xarckane
 */
public class ctlMemory {
        public static shared.Memory CreateMemory(){
        
        return new Memory();
    };
    
    public static void save(String serv,Memory mem) throws SQLException{
        
        DaoMemory.getInstance().saveMemory(serv, mem);
    };
    
        static Memory getMemory(int id) throws SQLException {
        return DaoMemory.getInstance().getMemoryByRequestId(id);
    }
}
